package xyz.sicau.feign.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import xyz.sicau.feign.pojo.User;

@FeignClient(value = "user-service")
public interface UserClient {
    @PostMapping("/user/{id}")
    User getUserById(@PathVariable("id") int id);
}
